✅️不足している型定義を完成させる (scrapbox-userscript-websocket)
from scrapbox-userscript-websocket
途中で力尽きてunknownでごまかしているものがいくつかある
requests
FilesChange
fileIdsがあればそれを展開して格納、fileIdであればそれをpush
HelpFeelsChange
helpfeels: string[]
scrapbox.Page.linesのhelpfeel.entryをpushしただけ
infoboxDefinitionChange
infoboxDefinition: string[]
テーブルの行をString.prototype.trim()しただけ
コードを調べていて気になったが、table:cosenseも対象っぽい?
code:js
if ("infobox", "cosense".includes(null === (pe = de.tableBlock) || void 0 === pe ? void 0 : pe.title) && (null === (be = de.tableBlock) || void 0 === be || !be.start)) {
var xe = de.text.trim();
ce.push(xe)
}
井戸端で試してみたら、実際に有効になった
responses
とくに定義漏れはなさそう
2024-05-02
12:08:54 IconsChangeをChangeに入れ忘れてた
https://github.com/takker99/scrapbox-userscript-websocket/pull/11
11:03:36 merged
11:01:34 実装終了
#2024-05-02 11:01:21
#2024-05-01 18:40:43